package com.share.module.sys.user.dto;


import com.share.module.sys.menu.entity.Menu;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "用户DTO")
public class UserDTO {

    /**
     * 用户名
     */
    @Schema(description = "用户名", example = "admin")
    private String username;

    /**
     * 密码
     */
    @Schema(description = "密码", example = "123456")
    private String password;

    /**
     * 昵称
     */
    @Schema(description = "昵称", example = "管理员")
    private String nickName;

    /**
     * 头像
     */
    @Schema(description = "头像", example = "http://example.com/avatar.jpg")
    private String avatarUrl;

    /**
     * token
     */
    @Schema(description = "token", example = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...")
    private String token;

    @Schema(description = "角色", example = "ROLE_ADMIN")
    private String role;

    @Schema(description = "菜单列表")
    private List<Menu> menus;

}
